package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CallLogBean implements Parcelable {

    private String contactName;
    private String callNumber;
    private String callTypeStr;
    private String callDateStr;
    private String callDurationStr;

    public CallLogBean() {
    }

    public CallLogBean(String contactName, String callNumber, String callTypeStr, String callDateStr, String callDurationStr) {
        this.contactName = contactName;
        this.callNumber = callNumber;
        this.callTypeStr = callTypeStr;
        this.callDateStr = callDateStr;
        this.callDurationStr = callDurationStr;
    }

    protected CallLogBean(Parcel in) {
        contactName = in.readString();
        callNumber = in.readString();
        callTypeStr = in.readString();
        callDateStr = in.readString();
        callDurationStr = in.readString();
    }

    public static final Creator<CallLogBean> CREATOR = new Creator<CallLogBean>() {
        @Override
        public CallLogBean createFromParcel(Parcel in) {
            return new CallLogBean(in);
        }

        @Override
        public CallLogBean[] newArray(int size) {
            return new CallLogBean[size];
        }
    };

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getCallNumber() {
        return callNumber;
    }

    public void setCallNumber(String callNumber) {
        this.callNumber = callNumber;
    }

    public String getCallTypeStr() {
        return callTypeStr;
    }

    public void setCallTypeStr(String callTypeStr) {
        this.callTypeStr = callTypeStr;
    }

    public String getCallDateStr() {
        return callDateStr;
    }

    public void setCallDateStr(String callDateStr) {
        this.callDateStr = callDateStr;
    }

    public String getCallDurationStr() {
        return callDurationStr;
    }

    public void setCallDurationStr(String callDurationStr) {
        this.callDurationStr = callDurationStr;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(contactName);
        dest.writeString(callNumber);
        dest.writeString(callTypeStr);
        dest.writeString(callDateStr);
        dest.writeString(callDurationStr);
    }
}
